0.0
NA
CVE-2025-40342
nvme-fc: use lock accessing port_state and rport state
Description

In the Linux kernel, the following vulnerability has been resolved: nvme-fc: use lock accessing port_state and rport state nvme_fc_unregister_remote removes the remote port on a lport object at any point in time when there is no active association. This races with with the reconnect logic, because nvme_fc_create_association is not taking a lock to check the port_state and atomically increase the active count on the rport.

INFO

Published Date :

Dec. 9, 2025, 4:17 p.m.

Last Modified :

Dec. 9, 2025, 6:36 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-40342 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Resolve race condition in nvme-fc by using locks for port and rport state.
  • Apply kernel patches for the nvme-fc vulnerability.
  • Ensure proper locking for port and rport state access.
  • Test the updated kernel for race condition stability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-40342 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-40342 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-40342 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-40342 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Dec. 09, 2025

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: nvme-fc: use lock accessing port_state and rport state nvme_fc_unregister_remote removes the remote port on a lport object at any point in time when there is no active association. This races with with the reconnect logic, because nvme_fc_create_association is not taking a lock to check the port_state and atomically increase the active count on the rport.
    Added Reference https://git.kernel.org/stable/c/25f4bf1f7979a7871974fd36c79d69ff1cf4b446
    Added Reference https://git.kernel.org/stable/c/4253e0a4546138a2bf9cb6acf66b32fee677fc7c
    Added Reference https://git.kernel.org/stable/c/891cdbb162ccdb079cd5228ae43bdeebce8597ad
    Added Reference https://git.kernel.org/stable/c/9950af4303942081dc8c7a5fdc3688c17c7eb6c0
    Added Reference https://git.kernel.org/stable/c/a2f7fa75c4a2a07328fa22ccbef461db76790b55
    Added Reference https://git.kernel.org/stable/c/de3d91af47bc015031e7721b100a29989f6498a5
    Added Reference https://git.kernel.org/stable/c/e8cde03de8674b05f2c5e0870729049eba517800
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
No CVSS metrics available for this vulnerability.